package main;

import arbore.Nod;

public abstract class Functie extends Nod {
	
	public abstract double calcul(double aux1);
	
	public abstract String concatTermeni(String aux1);
	
	public double calcul() {
		if(getfStang() == null)
			System.exit(1);
		return this.calcul(getfStang().calcul());
	}

	public String toString() {
		if(getfStang() == null)
			System.exit(1);
		return this.concatTermeni(getfStang().toString());
	}
}
